package com.light.sword;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

import java.lang.reflect.Method;

/**
 * @author: Jack
 * 2020/9/11 15:29
 */
public class WorldJProxy implements MethodInterceptor {

    public Object intercept(Object o, Method method, Object[] args, MethodProxy methodProxy) throws Throwable {
        System.out.println("Before");
        methodProxy.invokeSuper(o, args);
        System.out.println("After");
        return null;
    }

}
